package cn.parllay.dingdangproject.rest;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.parllay.dingdangproject.entity.RequestForm;
import cn.parllay.dingdangproject.entity.ResponseForm;
import cn.parllay.dingdangproject.service.IPushService;


/**
 * @ClassName:  PushController   
 * @Description: 给客户端(手机和pc)发送vip进店通知  
 * @author: JiangShuai 
 * @date:   2018年1月10日 下午5:55:27     
 * @Copyright: 2018 dingdian.parllay.cn Inc. All rights reserved. 
 * 注意：本内容仅限于叮当一下(北京)信息技术有限公司内部传阅，禁止外泄以及用于其他的商业目
 */
@Controller
@RequestMapping("/push")
public class PushController {
	
	@Resource
	IPushService pushService;
	
	@ResponseBody
	@RequestMapping(value="pushNotice",method=RequestMethod.POST)
	public ResponseForm pushNotice(@RequestBody RequestForm param) {
		return pushService.pushNotice(param);
	}

}
